package com.example.demo.controller;

import com.example.demo.rabbitMQ.Producer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author suliwei
 * @description:
 * @date 2025/3/4 15:10
 */
@RestController
@RequestMapping("")
public class RabbitMqController {

    @Autowired
    private Producer producer;

    @GetMapping("/send")
    public String send() {
        producer.send();
        return "发送完成";
    }
}
